package com.pipi.sso.core.service;

import com.pipi.sso.core.model.UserBO;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;

/**
 * All rights Reserved, Designed By www.maihaoche.com
 *
 * @Package com.pipi.sso.core.service
 * @date: 2019/3/21 7:14 PM
 * @Copyright: 2017-2020 www.maihaoche.com Inc. All rights reserved.
 */
public interface UserService {

    /**
     * <p> 查询用户 </p>
     * @param
     * @return UserBO
     * @throws
     * @date 2019/3/21 7:15 PM
     */
    List<UserBO> queryAllUser();

    /**
     * <p> 查询用户 </p>
     * @param userBO
     * @return List<UserBO>
     * @throws
     * @date 2019/4/15 11:15 AM
     */
    List<UserBO> queryUser(UserBO userBO);

    /**
     * <p> 更新用户 </p>
     * @param userBO
     * @throws
     * @date 2019/5/5 10:04 AM
     */
    void updateUser(UserBO userBO);

    /**
     * <p> 根据用户名查询 </p>
     * @param username
     * @return UserBO
     * @throws
     * @date 2019/5/6 8:42 AM
     */
    UserBO queryByUserName(String username);

    /**
     * <p> 分页条件查询学生信息 </p>
     * @param userBO
     * @return PageResult<UserBO>
     * @throws
     * @date 2019/5/6 9:59 AM
     */
    PageResult<UserBO> queryUserByPaged(UserBO userBO);

    /**
     * <p> 添加用户 </p>
     * @param userBO
     * @return void
     * @throws
     * @author zhaojian (zj)
     * @date 2019/5/6 10:35 AM
     */
    void addUser(UserBO userBO);
}
